package com.example.singletonpattern;

/**
 * @author liw
 * &#064;date  2022-10-23
 */
public class Singleton7 {
    private Singleton7() {
    }

    private static class SingletonInstance {
        private static final Singleton7 singletonInstance = new Singleton7();
    }

    public static Singleton7 getInstance() {

        return SingletonInstance.singletonInstance;
    }
}
